﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    <title>骑士小说</title>
    <meta name="keywords" content="骑士小说,无弹窗,小说阅读网,biquge"/>
    <meta name="description" content="骑士小说是广大书友最值得收藏的网络小说阅读网，网站收录了当前最火热的网络小说，免费提供高质量的小说最新章节，是广大网络小说爱好者必备的小说阅读网。"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
</head>
<body>

<link rel="stylesheet" href="https://cdn.bootcss.com/sweetalert/0.5.0/sweet-alert.css"/>
<link rel="stylesheet" href="https://zqjscss.cdn.bcebos.com/css/style.css"/>
<script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<script src="/static/js/novel.js"></script>
<script src="https://zqjscss.cdn.bcebos.com/js/apps.js"></script>

<!--
    <li><a rel="nofollow" th:href="${user ne null} ? @{/shelf/toshelf(userid=${user.getId()})} : @{/login/loginpage}">永久书架</a></li>
    不用a标签而用form表单的原因是：不想让用户看到url中的请求参数，而a标签默认使用get请求，没有好方法能让a标签发起post请求
    只好用表单跳转来发起post请求
-->
<!--    <form th:action="${user ne null} ? @{/shelf/toshelf} : @{/login/loginpage}" method="post">-->
<!--        &lt;!&ndash;-->
<!--        Exception processing template "index":-->
<!--        An error happened during template parsing (template: "class path resource [templates/index.html]")-->
<!--        异常处理模板“index”：模板解析过程中出错（模板：“class path resource[templates/index.html]”）-->

<!--        Caused by: org.attoparser.ParseException: Exception evaluating SpringEL expression: "user.getId()" (template: "index" - line 63, col 45)-->
<!--        原因：org.attoparser.ParseException:异常求值SpringEL表达式：“user.getId（）”（模板：“index”-第63行，第45列）-->
<!--        出错原因：可能存在user为空的情况，如未登录访问index，解决：加if条件判断-->
<!--        &ndash;&gt;-->
<!--        <input th:if="${user ne null}" type="hidden" name="userid" th:value="${user.getId()}">-->
<!--        <input type="submit" value="永久书架">-->
<!--    </form>-->
<!--    </li>-->

<div th:replace ="~{repetition :: topbar}"></div>
<div th:replace ="~{repetition :: header}"></div>
<div th:replace ="~{repetition :: nav}"></div>
<div class="container">
    <div class="row">
        <h2 class="layout-tit" >本周强推</h2>
        <div class="layout layout-col2" >
            <div class="item" th:each="book:${indexList}">
                <div class="image">
                    <a th:href="@{/info(bookid=${book.getId()})}">
                        <img style="min-height:120px;"  onerror="src='nopic.gif'"
                             th:src="@{${book.getId()}+'.jpg'}"
                             th:alt="${book.getName()}"/>
                    </a>
                </div>
                <dl th:switch="${book.getType()}">
                    <dt><span th:text="${book.getAuthor()}"> </span><a th:href="@{info(bookid=${book.getId()})}" th:text="${book.getName()}"> </a></dt>

                    <dd th:case="仙侠武侠">
                        <a th:href="@{info(bookid=${book.getId()})}"
                           th:text="${book.getIntroduction()!=null} ? ${#strings.length(book.getIntroduction())>75 ?
                           #strings.substring(book.getIntroduction(),0,75) :book.getIntroduction()}:
                    '修仙觅长生，热血任逍遥，踏莲曳波涤剑骨，凭虚御风塑圣魂！' "
                           style="color: #555"></a>
                    </dd>
                    <dd th:case="同人网游">
                        <a th:href="@{info(bookid=${book.getId()})}"
                           th:text="${book.getIntroduction()!=null} ? ${#strings.length(book.getIntroduction())>75 ?
                           #strings.substring(book.getIntroduction(),0,75) :book.getIntroduction()}:
                    '肆意挥洒激情的游戏人生，打破现实框架的无尽幻想！'"
                           style="color: #555"></a>
                    </dd>
                    <dd th:case="科幻灵异">
                        <a th:href="@{info(bookid=${book.getId()})}"
                           th:text="${book.getIntroduction()!=null} ? ${#strings.length(book.getIntroduction())>75 ?
                           #strings.substring(book.getIntroduction(),0,75) :book.getIntroduction()}:
                    '星海漫游，时空穿梭，机械科技，目标是未知的星辰大海！'"
                           style="color: #555"></a>
                    </dd>
                    <dd th:case="穿越历史">
                        <a th:href="@{info(bookid=${book.getId()})}"
                           th:text="${book.getIntroduction()!=null} ? ${#strings.length(book.getIntroduction())>75 ?
                           #strings.substring(book.getIntroduction(),0,75) :book.getIntroduction()}:
                    '醒掌天下权，醉卧美人膝，五千年风华烟雨，是非成败转头空！'"
                           style="color: #555"></a>
                    </dd>
                    <dd th:case="都市言情">
                        <a th:href="@{info(bookid=${book.getId()})}"
                           th:text="${book.getIntroduction()!=null} ? ${#strings.length(book.getIntroduction())>75 ?
                           #strings.substring(book.getIntroduction(),0,75) :book.getIntroduction()}:
                   '重生过去，畅想未来，梦幻现实，再塑传奇人生'"
                           style="color: #555"></a>
                    </dd>
                    <dd th:case="*">
                        <a th:href="@{info(bookid=${book.getId()})}"
                           th:text="${book.getIntroduction()!=null} ? ${#strings.length(book.getIntroduction())>75 ?
                           #strings.substring(book.getIntroduction(),0,75) :book.getIntroduction()}:
                    '心潮澎湃，无限幻想，迎风挥击千层浪，少年不败热血！' "
                           style="color: #555"></a>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="layout layout-col1">
            <h2 class="layout-tit">精品推荐</h2>
            <ul class="txt-list txt-list-row3">
                <!--暂定根据收藏量的多少来进行精品推荐  -->
                <li th:each="book:${goodRec}">
                    <span class="s1" th:text="'['+${book.getType()}+']'"></span>
                    <span class="s2"><a th:href="@{info(bookid=${book.getId()})}"
                                        th:text="${book.getName()}"></a></span>
                    <span class="s5" th:text="${book.getAuthor()}"></span>
                </li>
            </ul>
        </div>
    </div>

    <div class="row">
        <div class="layout">
            <div class="tp-box">
            <h2>玄幻奇幻</h2>
            <div class="top" th:if="${topStat.count<=3}" th:each="top:${topxuanhuan}">
                <div class="image">
                    <a th:href="@{/info(bookid=${top.getId()})}"><img
                            th:src="@{${top.getId()}+'.jpg'}" onerror="src='nopic.gif'"
                            th:alt="${top.getName()}"/></a>
                </div>
                <dl>
                    <dt><a th:href="@{/info(bookid=${top.getId()})}" th:text="${top.getName()}"></a></dt>
                    <dd><a th:href="@{/info(bookid=${top.getId()})}"  th:text="${top.getIntroduction()}!=null ? ${top.getIntroduction()} :'心潮澎湃，无限幻想，迎风挥击千层浪，少年不败热血！'  "
                           style="color: #555"> </a>
                    </dd>
                </dl>
            </div>
            <ul>
                <li  th:if="${topStat.count<=9&&topStat.count>3}" th:each="top:${topxuanhuan}">
                    <a th:href="@{/info(bookid=${top.getId()})}" th:text="${top.getName()}"></a>
                    <span th:text="'/'+${top.getAuthor()}"></span>
                </li>
            </ul>
        </div>
        <div class="tp-box">
            <h2>仙侠武侠</h2>
            <div class="top" th:if="${topStat.count<=3}" th:each="top:${topwuxia}">
                <div class="image">
                    <a th:href="@{info(bookid=${top.getId()})}"><img
                            th:src="@{${top.getId()}+'.jpg'}" onerror="src='nopic.gif'"
                            th:alt="${top.getName()}"/></a>
                </div>
                <dl>
                    <dt><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a></dt>
                    <dd><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getIntroduction()} ? ${top.getIntroduction()} :'修仙觅长生，热血任逍遥，踏莲曳波涤剑骨，凭虚御风塑圣魂！'"
                           style="color: #555"> </a>
                    </dd>
                </dl>
            </div>
            <ul>
                <li  th:if="${topStat.count<=9&&topStat.count>3}" th:each="top:${topwuxia}">
                    <a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a>
                    <span th:text="'/'+${top.getAuthor()}"></span>
                </li>
            </ul>
        </div>
        <div class="tp-box">
            <h2>都市言情</h2>

            <div class="top" th:if="${topStat.count<=3}" th:each="top:${topdushi}">
                <div class="image">
                    <a th:href="@{info(bookid=${top.getId()})}"><img
                            th:src="@{${top.getId()}+'.jpg'}" onerror="src='nopic.gif'"
                            th:alt="${top.getName()}"/></a>
                </div>
                <dl>
                    <dt><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a></dt>
                    <dd><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getIntroduction()} ? ${top.getIntroduction()} :'重生过去，畅想未来，梦幻现实，再塑传奇人生'"
                           style="color: #555"> </a>
                    </dd>
                </dl>
            </div>
            <ul>
                <li  th:if="${topStat.count<=9&&topStat.count>3}" th:each="top:${topdushi}">
                    <a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a>
                    <span th:text="'/'+${top.getAuthor()}"></span>
                </li>
            </ul>

        </div>
            <div class="tp-box">
                <h2>穿越历史</h2>
                <div class="top" th:if="${topStat.count<=3}" th:each="top:${topchuanyue}">
                    <div class="image">
                        <a th:href="@{info(bookid=${top.getId()})}"><img
                                th:src="@{${top.getId()}+'.jpg'}" onerror="src='nopic.gif'"
                                th:alt="${top.getName()}"/></a>
                    </div>
                    <dl>
                        <dt><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a></dt>
                        <dd><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getIntroduction()}? ${top.getIntroduction()} :'醒掌天下权，醉卧美人膝，五千年风华烟雨，是非成败转头空！'"
                               style="color: #555"> </a>
                        </dd>
                    </dl>
                </div>
                <ul>
                    <li  th:if="${topStat.count<=9&&topStat.count>3}" th:each="top:${topchuanyue}">
                        <a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a>
                        <span th:text="'/'+${top.getAuthor()}"></span>
                    </li>
                </ul>
            </div>
            <div class="tp-box">
                <h2>科幻灵异</h2>

                <div class="top" th:if="${topStat.count<=3}" th:each="top:${topkehuan}">
                    <div class="image">
                        <a th:href="@{info(bookid=${top.getId()})}"><img
                                th:src="@{${top.getId()}+'.jpg'}" onerror="src='nopic.gif'"
                                th:alt="${top.getName()}"/></a>
                    </div>
                    <dl>
                        <dt><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a></dt>
                        <dd><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getIntroduction()}? ${top.getIntroduction()} :'星海漫游，时空穿梭，机械科技，目标是未知的星辰大海！'"
                               style="color: #555"> </a>
                        </dd>
                    </dl>
                </div>
                <ul>
                    <li  th:if="${topStat.count<=9&&topStat.count>3}" th:each="top:${topkehuan}">
                        <a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a>
                        <span th:text="'/'+${top.getAuthor()}"></span>
                    </li>
                </ul>
            </div>
            <div class="tp-box">
                <h2>同人网游</h2>

                <div class="top" th:if="${topStat.count<=3}" th:each="top:${toptongren}">
                    <div class="image">
                        <a th:href="@{info(bookid=${top.getId()})}"><img
                                th:src="@{${top.getId()}+'.jpg'}" onerror="src='nopic.gif'"
                                th:alt="${top.getName()}"/></a>
                    </div>
                    <dl>
                        <dt><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a></dt>
                        <dd><a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getIntroduction()}? ${top.getIntroduction()} :'肆意挥洒激情的游戏人生，打破现实框架的无尽幻想！'"
                               style="color: #555"> </a>
                        </dd>
                    </dl>
                </div>
                <ul>
                    <li  th:if="${topStat.count<=9&&topStat.count>3}" th:each="top:${toptongren}">
                        <a th:href="@{info(bookid=${top.getId()})}" th:text="${top.getName()}"></a>
                        <span th:text="'/'+${top.getAuthor()}"></span>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="layout layout2 layout-col1 fr">
            <h2 class="layout-tit">最新完结小说</h2>
            <ul class="txt-list txt-list-row3">

                <li  th:each="book:${latestover}">
                    <span class="s1" th:text="'['+${book.getType()}+']'">[武侠仙侠]</span>
                    <span class="s2"><a th:href="@{/info(bookid=${book.getId()})}" th:text="${book.getName()}">万蛊星君</a></span>
                    <span class="s5"  th:text="${book.getAuthor()}">朱颜子</span>
                </li>


            </ul>
        </div>
        <div class="layout layout2 layout-col2 fl">
            <h2 class="layout-tit">最近更新小说列表</h2>
            <ul class="txt-list txt-list-row5">

                <li th:each="book:${latestupdate}">
                    <span class="s1" th:text="'['+${book.getType()}+']'" >[玄幻奇幻]</span>
                    <span class="s2">
                                    <a th:href="@{/info(bookid=${book.getId()})}" th:text="${book.getName()}">恒天策</a>
                                </span>
                    <span class="s3"><a  th:href="@{/text(chid=${book.getLatestnum()},bookid=${book.getId()})}" th:text="${book.getLatestchapter()}" >第468章 帝神令</a></span>
                    <span class="s4" th:text="${book.getAuthor()}">尘落君临</span>
                    <span class="s5" th:text="${#dates.format(book.getLatestdate(), 'MM-dd')}">12-10</span>
                </li>

            </ul>
        </div>
    </div>
</div>
</div>
<script>createApp()</script>
<div class="footer" id="footer">
    <div class="pc-footer">
        <p>本站所有小说为转载作品，所有章节均由网友上传，转载至本站只是为了宣传本书让更多读者欣赏。</p>
    </div>
    <div class="m-footer">
        <a href="/">首页</a>
        <a href="/user/case.php" rel="nofollow">我的书架</a>
        <a href="/reader/case.php" rel="nofollow">阅读记录</a>
        <a href="https://mgzs.cdn.bcebos.com/appdown.html?w=tg12">客户端</a>
        <a href="#">顶部↑</a>
    </div>
</div>

<script src="https://zqjscss.cdn.bcebos.com/js/iconfont.js"></script>
<script src="https://apps.bdimg.com/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/sweetalert/0.5.0/sweet-alert.min.js"></script>
<script>
    function check() {
        var keyWord = $("#keyWord").val().trim();
        if (keyWord == "" || keyWord == null || keyWord == undefined) {
            swal({
                title: "请输入正确的信息！",
                type: "warning",
            });
        } else {
            $("#form").submit();
        }
    }



    function loginbtn() {
        var domain = window.location.href;
        $.post("/MemberAction.php", {
                action: 'login',
                username: $("#small-username").val(),
                password: $("#small-password").val(),
                usecookie: "720"
            },
            function (result) {
                if (result != []) {
                    if (result.status == 1) {
                        swal({
                            title: "提示",
                            text: result.info
                        });
                        setTimeout(function () {
                            if (domain.indexOf("login.php") >= 0) {
                                location.href = "/";
                            } else {
                                location.href = domain;
                            }
                        }, 1500);
                    } else {
                        swal({
                            title: "提示",
                            text: result.info
                        });
                    }
                }
            })
    }
</script>
<div style="display:none;">
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?1178a65c6e06652b52745ae1c757aa87";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <script type="text/javascript" src="https://s9.cnzz.com/z_stat.php?id=1278951145&web_id=1278951145"></script>
</div>
<div class="pc-footer">
    <a href="https://www.iove.net/book/5580/">长夜余火</a>
    <a href="http://www.axeslide.com/ldks/5418/">有请小师叔</a>
    <a href="/SiteMap/bd/sitemap_index.xml">网站地图</a>
</div>
<div class="m-footer" style="padding:0 10px 10px 10px;font-size:13px;margin:0;line-height:1;">
    <a href="https://www.iove.net/book/5580/">长夜余火</a>
    <a href="http://www.axeslide.com/ldks/5418/">有请小师叔</a>
    <a href="/SiteMap/bd/sitemap_index.xml">网站地图</a>
</div>
<style>
    .copyrights {
        text-indent: -9999px;
        height: 0;
        line-height: 0;
        font-size: 0;
        overflow: hidden;
    }
</style>
<div class="copyrights" id="links20210126">
    Collect from <a href="http://www.cssmoban.com/" title="网站模板">模板之家</a>
    <a href="http://cooco.net.cn/" title="组卷网">组卷网</a>
</div>
</body>
</html>
